<script lang="ts" setup>
import { PropType } from 'vue'
import { ArrowRight } from '@element-plus/icons-vue'
type titleInfoType = {
  title: string
  path?: string
}

defineProps({
  titleInfo: {
    type: Object as PropType<titleInfoType>,
    required: true
  }
})
</script>

<template>
  <el-button link
    >{{ titleInfo.title }}<el-icon><ArrowRight /></el-icon
  ></el-button>
</template>

<style scoped lang="scss">
.el-button {
  font-size: 26px;
  font-weight: bold;
  margin: 10px 0 20px;
}
</style>
